< previous page page_648 next page >

Page 648
tables defined (EquipSupplier, DeptSupplier, and DeptEqpSuplr) allow edits on any existing record. This is because you defined the primary key as having all the fields in a record. Because you cannot edit a primary key value, you must first delete the record, and then add the modified version to the data table.
0648-01.jpg
Figure 16.9.
The EquipSupplier, DeptSupplier, and DeptEqpSuplr tables.
Summary
In today's lesson, you learned how to improve database integrity and access speed using the five rules of data normalization. You learned the following five rules:
· Rule 1: Eliminate Repeating Groups. If you have a set of fields that have the same name followed by a number (Skill1, Skill2, Skill3, and so forth), remove these repeating groups, create a new table for the repeating data, and relate it to the key field in the first table.
· Rule 2: Eliminate Redundant Data. Don't store the same data in two different locations. This can lead to update and delete errors. If equivalent data elements are entered in two fields, remove the second data element, create a new master table with the element and its partner as a key field, and then place the key field as a relationship in the locations that formerly held both data elements.
· Rule 3: Eliminate Columns Not Dependent on Keys. If you have data elements that are not directly related to the primary key of the table, these elements should be removed to their own data table. Only store data elements that are directly

 
< previous page page_648 next page >

If you like this book, buy it!